﻿@addTagHelper "*, TestAssembly"

@if (true)
{
    var checkbox = "checkbox";

    <div class="randomNonTagHelperAttribute">
        <p age="@@@(1+2)" class="@@string"></p>
        <p time="Current Time: @DateTime.Now">
            <h1>Set Time:</h1>
            @if (false)
            {
                <p>New Time: <input type="text" value="" placeholder="Enter in a new time..."/></p>
            }
            else
            {
                <p>Current Time: <input type=@checkbox checked=true /></p>
                <input tYPe='@(true ? "checkbox" : "anything")' />
                <input type='@if(true) { <text>checkbox</text> } else { <text>anything</text> }'>
            }
        </p>
        <p unbound="first value" age="@DateTimeOffset.Now.Year - 1970" unbound="second value" >
            @{ var @object = false;}
            <input ChecKED="@(@object)">
        </p>
        <p age="-1970 + @DateTimeOffset.Now.Year">
            <input unbound="hello" unbound="world" checked="@(DateTimeOffset.Now.Year > 2014)" />
        </p>
        <p age="DateTimeOffset.Now.Year - 1970">
            <input checked="DateTimeOffset.Now.Year > 2014">
        </p>
        <p age="@("My age is this long.".Length)">
            <input checked="   @(  DateTimeOffset.Now.Year  ) > 2014   " />
        </p>
        @someMethod(@<p age="123" class="hello"><input checked=@checked /></p>)
        <p age="@{1 + 2}"></p>
    </div>
}